package java_learn.java_jinjie.IO;

import java.io.FileWriter;
import java.io.IOException;

/**
 * @Author: 李浩然
 * @Date: 2021/1/25 1:08 下午
 */
public class DemoFileWriter04 {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("java_learn/src/main/java/java_learn/java_jinjie/IO/write.txt", true);
        for (int i = 0; i < 10; i++) {
            fw.write("hello world" + i + "\r");
        }
        fw.close();
    }
}
